projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eb6135
)
offscreenwindow: Get rid of gdk_drawable_get_size() usage
author
Benjamin Otte
<otte@redhat.com>
Mon, 20 Sep 2010 14:39:41 +0000
(16:39 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Sep 2010 13:11:44 +0000
(15:11 +0200)
gtk/gtkoffscreenwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkoffscreenwindow.c
b/gtk/gtkoffscreenwindow.c
index 9449df3abe934b0541dff606b550fdd15bc1e4d7..c945e4acfabefaead41751dbd64f1d6c78367f57 100644
(file)
--- a/
gtk/gtkoffscreenwindow.c
+++ b/
gtk/gtkoffscreenwindow.c
@@
-316,13
+316,10
@@
gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen)
if (surface != NULL)
{
- gint width, height;
-
- gdk_drawable_get_size (window, &width, &height);
-
pixbuf = gdk_pixbuf_get_from_surface (NULL, surface,
0, 0, 0, 0,
- width, height);
+ gdk_window_get_width (window),
+ gdk_window_get_height (window));
}
return pixbuf;